package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.entity.SysDocument;
import com.ruoyi.common.core.domain.entity.SysDocumentCategory;
import com.ruoyi.system.service.impl.SysDocumentServiceImpl;

import java.util.List;

public interface ISysDocumentService {
    List<SysDocument> selectDocumentList(SysDocument document);
    int insertDocument(SysDocument document);
    int updateDocument(SysDocument document);
    int deleteDocumentByIds(Long[] documentIds);
    int deleteDocumentByPath(String filePath,String fileName);
    SysDocument selectDocumentById(Long documentId);

    List<SysDocumentCategory> selectCategoryList(SysDocumentCategory category);
    int insertCategory(SysDocumentCategory category);
    int updateCategory(SysDocumentCategory category);
    int deleteCategoryById(Long categoryId);
    SysDocumentCategory selectCategoryById(Long categoryId);
    List<SysDocumentCategory> buildCategoryTree(List<SysDocumentCategory> categories);
    boolean hasChildByCategoryId(Long categoryId);
}